home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 45 lines | [TEXT/GEOL] |
- Item 0832817 8-Jan-90 16:12
-
- From: KNEPPER Knepper, Christopher
-
- To: DAWSON.M Dawson, Mark
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: menus w/small icons
-
- Mark,
-
- See Mac Tech Note 253. If you don't have it, it's available on AppleLink in the
- Developer Services bb.
-
- It's fairly simple. Here's an example:
-
- resource 'cmnu' (mCustomize) {
- mCustomize,
- textMenuProc,
- allEnabled,
- enabled,
- "Customize",
- { "Text", \0x03, "\0x1E", nomark, plain, cCustText;
- "Line", \0x05, "\0x1E", nomark, plain, cCustLine;
- "Rectangle", \0x01, "\0x1E", nomark, plain, cCustRect;
- "Round Rectangle", \0x02, "\0x1E", nomark, plain, cCustRRect;
- "Oval", \0x04, "\0x1E", nomark, plain, cCustOval
- }
- };
-
- resource 'SICN' (257, "Rect", purgeable) {
- { /* array: 1 elements */
- /* [1] */
- $"00 00 00 00 00 00 7F FE 40 02 40 02 40 02 40 02"
- $"40 02 40 02 40 02 40 02 7F FE"
- }
- };
-
- Note that "\0x1E" goes in the command key spot, and the SICN id (- 256) goes in
- the idon id spot.
-
- -Chris
-
-